import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'sys_erp_field' })
export default class SysErpField extends BaseEntity {
  @Column({ type: 'varchar', length: 50, unique: true, name: 'field', comment: '字段' })
  @ApiProperty()
  field: string;

  @Column({ type: 'varchar', length: 50, name: 'new_field', comment: '新字段' })
  @ApiProperty()
  newField: string;

  @Column({ type: 'varchar', nullable: true, comment: '备注' })
  @ApiProperty()
  remark: string;
}
